<div data-role="page" data-url="<%= Rho::RhoConfig.start_path %>/">

  <div data-role="header" data-position="fixed" data-tap-toggle="false">
    <h1>Chọn môn học</h1>
    <a data-role="button" data-theme="a" data-rel="back"> Chọn lớp</a>
  </div>

  <div data-role="content">
   	<div>
   	 <form method="post" action="<%= url_for :action => :do_select_subject %>">
   		<fieldset data-role="controlgroup">
        <legend> Chọn môn học</legend>
        
        <% @subjects.each do |subject| %>
          <input type="checkbox" name="subject[<%= subject['id'] %>]" id="subject-<%= subject['id'] %>" />
          <label for="subject-<%= subject['id'] %>"><%= subject['name'] %></label>
        <% end %>      
      </fieldset>
      <input type="submit" value="Đăng ký" data-role="button" data-theme="b" />
</form>
  	</div>
  </div>

</div>
